import 'normalize.css'
import Vue from 'vue'
import router from './router'
import App from './App.vue'
import VueLazyload from 'vue-lazyload'
import infiniteScroll from 'vue-infinite-scroll'
import myLayout from './components/layout/index.vue'
import myContent from './components/layout/content.vue'
import myFooter from './components/layout/footer.vue'
import popUp from './components/popUp.vue'
import { http } from '../public/js/http'

Vue.use(infiniteScroll)
Vue.use(VueLazyload)  //自定义全局组件
Vue.use(myLayout)
Vue.use(myContent)
Vue.use(myFooter)
Vue.use(popUp)


Vue.component('my-layout', myLayout) //初始化组件 布局头部
Vue.component('my-content', myContent)
Vue.component('my-footer', myFooter)
Vue.component('my-popup', popUp)

Vue.config.productionTip = false

Vue.prototype.$http = http;

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
